<div class="fcontent">
    <div class="breadcrum">
        <p>
            <a href="#">Penilaian Dosen</a><span></span>
            <small>Daftar Kelas</small>
        </p>
        <div class="clear"></div>
    </div>

    <div class="info-detail">
        <div class="search-box">
            <h3><a href="#">Cari Kelas</a></h3>
            <form action="{$config->site_url('public/penilaian/search_kelas')}" method="post">
                <table class="table-search" width="100%">
                    <tr>
                        <td width="15%"><b>Nama Kelas</b></td>
                        <td width="85%"><input type="text" name="kelas_nm" value="{$search.kelas_nm|default:''}" size="50" maxlength="50" placeholder="Nama Kelas" style="text-align: center;" autocomplete="off" /></td>
                    </tr>
                    <tr>
                        <td colspan="2" align='right'>
                            <input name="save" type="submit" value="Cari"/>
                            <input name="save" type="submit" value="Reset" />
                        </td>
                    </tr>
                </table>
            </form>
        </div>
        <div class="pagination">
            <ul>
                <li><strong>{$pagination.start|default:'0'} - {$pagination.end|default:'0'}</strong> dari <strong>{$pagination.total|default:'0'}</strong> Kelas</li>
                {$pagination.data|default:''}
            </ul>
            <div class="clear"></div>
        </div>
        <br />
        <table class="table-view" width="100%">
            <tr class="headrow">
                <th width="5%">No</th>
                <th width="20%">Nama Kelas</th>
                <th width="25%">Mata Kuliah</th>
                <th width="25%">Dosen</th>
                <th width="15%">Tanggal</th>
                <th width="10%"></th>
            </tr>
            {foreach from=$rs_id item=result}
            <tr>
                <td align="center">{$no++}.</td>
                <td>{$result.kelas_nm|default:''}</td>
                <td>{$result.makul_nm|default:''}</td>
                <td>{$result.nama_lengkap|default:''}, {$result.dosen_gelar|default:''}</td>
                <td align="center">{$dtm->get_full_date($result.kelas_tgl)|default:''}</td>
                <td align="center">
                    <a href="{$config->site_url('public/penilaian/input')}/{$result.kelas_detail_kd}" class="button-edit">Pilih</a>
                </td>
            </tr>
            {foreachelse}
            <tr>
                <td colspan="6">Kelas tidak ditemukan !</td>
            </tr>
            {/foreach}
        </table>
    </div>
</div>